Draft:[18.0][RFR] #12975 Review automated action#6
Draft:[18.0][RFR] #12975 Review automated action#6KKamaa wants to merge 45 commits into18.0-add-pyproject-tomlfrom
Conversation
oca_custom/models/res_partner.py
Outdated
| if chan_id: | ||
| desired_channel_ids.add(chan_id) | ||
|
|
||
| for chan in channels: |
There was a problem hiding this comment.
Better to use complete name:
channel
There was a problem hiding this comment.
I had made this feature but checking on Tom's requirement he mentioned he will come up with a better way.
| elif (not should_be_member) and is_member: | ||
| self._safe_channel_write(chan, {field: [(3, partner.id)]}) | ||
|
|
||
| def action_membership_sync(self): |
There was a problem hiding this comment.
Is this called anywhere apart from the tests?
or it can be added as a server action by hand?
oca_custom/models/res_partner.py
Outdated
| _logger = logging.getLogger(__name__) | ||
|
|
||
| PARAM_PREFIX = "oca_membership_channel_sync." | ||
| MEMBER_STATES = {"paid", "invoiced", "free"} |
There was a problem hiding this comment.
I think it should only be paid & Free.
but let's confirm from Tom.
There was a problem hiding this comment.
I removed free and invoiced and just settled for paid based on the scope Tom mentioned.
| return res | ||
|
|
||
| if "membership_state" in vals: | ||
| self._sync_member_tag_from_membership_state() |
There was a problem hiding this comment.
Even after paying for a membership, I couldn't get the tag configured to be added.
There was a problem hiding this comment.
@Kiplangatdan can you try again and make sure the member is none if you're creating a new test member

d5a8d74 to
666b6ed
Compare
ae3478f to
1b2f1af
Compare
…IMP] remove warning when analysing Odoo modules manifest, if docutils raise warning
* [FIX] make the github page always visible So the github_login field can be set manually.
* account_statement_import_online_wise were missing on staging only module missing from production 20250617 * l10n_ch_pain_base * l10n_ch_pain_credit_transfer * project_task_add_very_high * web_search_with_and and bumps all module versions
The module makes session garbage collection deterministic To use the module, it needs to be added to the server_wide_modules conf options Another option should also be added to set gc for all sessions older than 3 days ;3 days = 60*60*24*3 seconds session_expiry_delay = 259200
Add contribute tools in order to develop and release docker images for https://odoo-community.org using Acsonne toolsets likes hatch-odoo, odoo-bedrock... This helps to quickly create a locale environement close to what is installed on our production instance. Use following unreleased code: * odoo14-addon-membership-delegated-partner-line from OCA/vertical-association/pull/151 * odoo from OCA/OCB/pull/1299 Co-authored-by: Stéphane Bidoul <stephane.bidoul@acsone.eu> Co-authored-by: Holger Brunn <mail@hunki-enterprises.com>
It's necessary to run, e.g. github_connector migrations
waiting for camptocamp/pytest-odoo#85
the refactor avoid useless SQL requests
638a82e to
e49e365
Compare

Refactor automated action Update Tag and Mailing list -> Update Mailing List